/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * iDraughts.java
 *
 * Created on 12 sept. 2011, 21:26:53
 */

package view;

import controller.cCheckerboard;
import javax.swing.JFrame;

/**
 *
 * @author Robert EA
 */
public class iDraughts extends JFrame {
    
    /** Creates new form iDraughts */
    public iDraughts() {
        initComponents();
        this.setSize(800, 525);
        this.setResizable(false);
        this.setTitle("Jeu de dames");
        
        cCheckerboard cb = new cCheckerboard();
        UserOption uo = new UserOption(cb, this);
        Grid grid = new Grid(cb, this, uo);
        cb.displayCheckerboard();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setName("mainFrame");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 575, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 438, Short.MAX_VALUE)
        );

        getAccessibleContext().setAccessibleName("mainFrame");

        pack();
    }// </editor-fold>//GEN-END:initComponents
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new iDraughts().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables

}
